package Campus.help.task.dao;

import Campus.help.task.entity.TaskStatusInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author haoyun.xiong
 * @since 2023-04-08
 */
public interface TaskStatusInfoMapper extends BaseMapper<TaskStatusInfo> {


    Long addNewTask(@Param("id") int id, @Param("pId")Long userId, @Param("rId") Long reveiveId);

    int updateOrderStatus(@Param("id")Long id, @Param("orderNumber")String orderNumber, @Param("status")int status);

    void cancelOneOfOrder(String orderNumber);

    int cancelAllOfOrder(@Param("rid")Long rid,@Param("orderNumber") String orderNumber);
}
